﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "库存余额", TableName = "Inventory_Balance")]
    public partial class Inventory_Balance:SysEntity
    {
        /// <summary>
        ///产品编码
        /// </summary>
        [Display(Name = "产品编码")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Required(AllowEmptyStrings = false)]
        public string ProductCode { get; set; }

        /// <summary>
        ///产品名称
        /// </summary>
        [Display(Name = "产品名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Required(AllowEmptyStrings = false)]
        public string ProductName { get; set; }

        /// <summary>
        ///产品规格
        /// </summary>
        [Display(Name = "产品规格")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string ProductStandard { get; set; }

        /// <summary>
        ///库存数量
        /// </summary>
        [Display(Name = "库存数量")]
        [Column(TypeName = "int")]
        public int? InventoryQty { get; set; }

        /// <summary>
        ///单位
        /// </summary>
        [Display(Name = "单位")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int Unit_Id { get; set; }

        /// <summary>
        ///工艺路线
        /// </summary>
        [Display(Name = "工艺路线")]
        [Column(TypeName = "int")]
        public int? Process_Id { get; set; }

        /// <summary>
        ///最大库存
        /// </summary>
        [Display(Name = "最大库存")]
        [Column(TypeName = "int")]
        public int? MaxInventory { get; set; }

        /// <summary>
        ///最小库存
        /// </summary>
        [Display(Name = "最小库存")]
        [Column(TypeName = "int")]
        public int? MinInventory { get; set; }

        /// <summary>
        ///安全库存
        /// </summary>
        [Display(Name = "安全库存")]
        [Column(TypeName = "int")]
        public int? SafeInventory { get; set; }

        /// <summary>
        ///产品属性
        /// </summary>
        [Display(Name = "产品属性")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Required(AllowEmptyStrings = false)]
        public string ProductAttribute { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string Creator { get; set; }

        /// <summary>
        ///最后修改时间
        /// </summary>
        [Display(Name = "最后修改时间")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        ///主键ID
        /// </summary>
        [Key]
        [Display(Name = "主键ID")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int Product_Id { get; set; }
    }
}
